Role of chance in scientific discoveries